<!--
 * @Author: your name
 * @Date: 2021-06-16 11:21:57
 * @LastEditTime: 2021-06-16 11:57:02
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vueDemo\04指令-属性插值.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
<style>
    #dv{
        width: 100px;
        height: 100px;
        border: 1px solid salmon;
    }
    .my{
        border: 1px dotted purple;
    }
</style>
</head>
<body>
    <div id="dv">
        <a v-bind:href="url">{{msg}}</a>
        <br />
        <a :href="url">百度一下</a>
        <br/>
        <div :class = "cls">一个div</div>
    </div>
    <script>
        new Vue({
            el:"#dv",
            data:{
                msg:"百度",
                url:"http://www.baidu.com",
                cls:"my"
            }   
        })
    </script>
</body>
</html>